import React from "react";
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import DetailPage from "../components/DetailPage";
import Home from "../components/Home";
import ListPage from "../components/ListPage";

const route = () => (
  <BrowserRouter>
    <Routes>
      <Route  path="/" element={<Home/>} />
      <Route  path="/listPage" element={<ListPage/>} />
      <Route  path="/detailPage/:id" element={<DetailPage />} />
      {/* <Route exact path="*" element={<NotFound />} /> */}
    </Routes>
  </BrowserRouter>
);

export default route;

